package android.microblog.Sina;

import weibo4andriod.WeiboException;
import android.content.Intent;
import android.microblog.Abstract.MicroblogOAuth;
import android.microblog.Common.MicroblogType;
import android.microblog.Data.UserInfo;

public class SinaOAuth extends MicroblogOAuth {

	private static String consumerkey = "956917457";
	private static String consumersecret = "9d3fd5e92b04c3894f2c47507d3797d0";
	private static String requesttokenurl = "http://api.t.sina.com.cn/oauth/request_token";
	private static String accesstokenurl = "http://api.t.sina.com.cn/oauth/access_token";
	private static String authorizeurl = "http://api.t.sina.com.cn/oauth/authorize";

	public SinaOAuth() {
		super(consumerkey, consumersecret, MicroblogType.SINA, requesttokenurl,
				accesstokenurl, authorizeurl);
		System.setProperty("weibo4j.oauth.consumerKey", consumerkey);
		System.setProperty("weibo4j.oauth.consumerSecret", consumersecret);

	}

	public UserInfo GetAccessToken(Intent intent)  {
		UserInfo userInfo=super.GetAccessToken(intent);

		return userInfo;
	}
}
